package com.duoketech.routes;

import com.duoketech.controller.deliveryconfig.DeliveryConfigController;
import com.duoketech.controller.web.article.ArticleController;
import com.duoketech.controller.web.TravelController;
import com.duoketech.controller.web.activity.ActivityController;
import com.duoketech.controller.web.activityorder.ActivityOrderController;
import com.duoketech.controller.web.distribute.FoodDistributeController;
import com.duoketech.controller.web.member.MemberController;
import com.duoketech.controller.web.mfood.MemberFoodController;
import com.duoketech.controller.web.modulepic.ModulePicController;
import com.duoketech.controller.web.order.OrderController;
import com.duoketech.controller.web.product.ProductController;
import com.duoketech.controller.web.room.UnitRoomController;
import com.duoketech.controller.web.roomorder.RoomOrderController;
import com.duoketech.controller.web.unit.UnitController;
import com.duoketech.interceptor.MemberInterceptor;
import com.jfinal.config.Routes;

public class FrontRoutes extends Routes {

    @Override
    public void config() {
        setBaseViewPath("/WEB-INF/view/front");
        addInterceptor(new MemberInterceptor());
        add("/travel", TravelController.class, "/");
        add("/travel/article", ArticleController.class, "/travel/article");
        add("/travel/activity", ActivityController.class, "/travel/activity");
        add("/travel/member", MemberController.class, "/travel/member");
        add("/travel/order", OrderController.class, "/travel/order");
        add("/travel/unitRoom", UnitRoomController.class, "/travel/room");
        add("/travel/unit", UnitController.class, "/travel/unit");
        add("/travel/memberFood", MemberFoodController.class, "/travel/mfood");
        add("/travel/foodDistribute", FoodDistributeController.class, "/travel/distribute");
        add("/travel/activityOrder", ActivityOrderController.class, "/travel/activityorder");
        add("/travel/roomOrder", RoomOrderController.class, "/travel/roomorder");
        add("/travel/product", ProductController.class, "/travel/product");
        add("/travel/modulePic", ModulePicController.class, "/travel/modulepic");
        add("/travel/deliveryConfig", DeliveryConfigController.class, "/travel/deliveryconfig");
    }
}
